home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 December / DPPCPRO1205.ISO / Assets / Interface / Install.dxr / 00001_Install Window.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2005-05-18  |  3.9 KB  |  86 lines

  1. function setTitle(task, title)
  2. {
  3.    trace("received: " + task + ", " + title);
  4.    trace("setTitle.this: " + this);
  5.    titleBarTask.text = task.toUpperCase();
  6.    titleBarAppName.text = title.toUpperCase();
  7.    _level0.titleBarBackground.left._width = _level0.titleBarTask.width + 10;
  8.    _level0.titleBarAppName._x = _level0.titleBarBackground._x + _level0.titleBarBackground.left._width + 5;
  9.    with(_level0.titleBarBackground)
  10.    {
  11.       beginFill("0x000000",100);
  12.       lineStyle(1,"0x000000",100);
  13.       trace("start point: " + _level0.titleBarBackground.left._width);
  14.       moveTo(_level0.titleBarBackground.left._width,0);
  15.       lineTo(319,0);
  16.       lineTo(319,29);
  17.       lineTo(_level0.titleBarBackground.left._width,29);
  18.       lineTo(_level0.titleBarBackground.left._width,0);
  19.       endFill;
  20.    }
  21. }
  22. function setStep(body, btnLabel, btnTarget)
  23. {
  24.    if(btnTarget != null && btnLabel != null)
  25.    {
  26.       paneContent.step = {stepText:body,target:btnTarget,btnlabel:btnLabel};
  27.    }
  28.    else
  29.    {
  30.       paneContent.step = {stepText:body};
  31.    }
  32. }
  33. function launchPath(target)
  34. {
  35.    getURL("event: launch " add target,"");
  36. }
  37. _level0.footerBar._visible = false;
  38. _global.styles.TextArea.setStyle("backgroundColor",undefined);
  39. var dialogTitleStyleWhite = _global.styles.dialogTitleStyleWhite = new mx.styles.CSSStyleDeclaration();
  40. dialogTitleStyleWhite.styleName = "dialogTitleStyleWhite";
  41. dialogTitleStyleWhite.color = "0xFFFFFF";
  42. dialogTitleStyleWhite.fontFamily = "embed_KnockoutHTF69FullLiteweight";
  43. dialogTitleStyleWhite.fontSize = 20;
  44. dialogTitleStyleWhite.fontWeight = "normal";
  45. var dialogTitleStyleGrey = _global.styles.dialogTitleStyleGrey = new mx.styles.CSSStyleDeclaration();
  46. dialogTitleStyleGrey.styleName = "dialogTitleStyleGrey";
  47. dialogTitleStyleGrey.color = "0x666666";
  48. dialogTitleStyleGrey.fontFamily = "embed_KnockoutHTF69FullLiteweight";
  49. dialogTitleStyleGrey.fontSize = 20;
  50. dialogTitleStyleGrey.fontWeight = "normal";
  51. _level0.titleBarTask.embedFonts = true;
  52. _level0.titleBarTask.autoSize = "left";
  53. _level0.titleBarTask.setStyle("styleName","dialogTitleStyleWhite");
  54. _level0.titleBarBackground.left._width = 300;
  55. _level0.titleBarAppName.embedFonts = true;
  56. _level0.titleBarAppName.autoSize = "left";
  57. _level0.titleBarAppName.setStyle("styleName","dialogTitleStyleGrey");
  58. var buttonStyle = _global.styles.buttonStyle = new mx.styles.CSSStyleDeclaration();
  59. buttonStyle.styleName = "buttonStyle";
  60. buttonStyle.themeColor = "0x990000";
  61. buttonStyle.color = "0x444444";
  62. buttonStyle.disabledColor = "0xDCDCDC";
  63. buttonStyle.fontFamily = "embed_MetaBoldLF-Caps";
  64. buttonStyle.fontSize = 13;
  65. buttonStyle.fontWeight = buttonStyle.fontStyle = "normal";
  66. _level0.closeBtn.embedFonts = true;
  67. _level0.closeBtn.setStyle("styleName","buttonStyle");
  68. var stepNumberStyle = _global.styles.stepNumberStyle = new mx.styles.CSSStyleDeclaration();
  69. stepNumberStyle.styleName = "stepNumberStyle";
  70. stepNumberStyle.color = "0xEE1C23";
  71. stepNumberStyle.fontFamily = "embed_MetaMediumLF-Roman";
  72. stepNumberStyle.fontSize = 39;
  73. _global.stepStyles = new TextField.StyleSheet();
  74. stepStyles.setStyle("steplabel",{fontFamily:"Embedded_Arial",fontSize:"28px",color:"#EE1C23",fontWeight:"normal",textDecoration:"none"});
  75. stepStyles.setStyle("stepbody",{fontFamily:"embed_Bliss2",fontSize:"15px",color:"#000000",textDecoration:"none",marginLeft:"8px"});
  76. stepStyles.setStyle("stepbodybold",{fontFamily:"embed_Bliss2",fontSize:"14px",fontWeight:"bold",color:"#000000",textDecoration:"none"});
  77. stepStyles.setStyle("stepbtn",{fontFamily:"embed_MetaBoldLF-Caps",fontSize:"13px",color:"#000000",textDecoration:"none"});
  78. _level0.stepsPane.contentPath = "InstallStep";
  79. var paneContent = _level0.stepsPane.content;
  80. _level0.stepsPane.setStyle("themeColor","0x990000");
  81. _level0.stepsPane.vScrollPolicy = "auto";
  82. _level0.stepsPane.hScrollPolicy = "off";
  83. paneContent.clipHolder = _level0.stepsPane;
  84. stepsPane.borderStyle = "none";
  85. stop();
  86.